package com.lalifa.googledate.ui.adapter;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentStatePagerAdapter;

import com.lalifa.googledate.ui.activity.YearFragment;

public class YearPageAdapter extends FragmentStatePagerAdapter {
        public YearPageAdapter(@NonNull FragmentManager fm) {
            super(fm);
        }

        @NonNull
        @Override
        public Fragment getItem(int position) {
            return YearFragment.newInstance(2000 + position);
        }

        @Override
        public int getCount() {
            return 30;
        }
    }